Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 12 - Draw Context Objects / Draw Context Objects Reference
Draw Context Objects Routines / Managing Macintosh Draw Contexts


Q3MacDrawContext_GetGrafPort

You can use the Q3MacDrawContext_GetGrafPort function to get the QuickDraw graphics port associated with a Macintosh draw context.

TQ3Status Q3MacDrawContext_GetGrafPort (
TQ3DrawContextObject drawContext, 
CGrafPtr *grafPort);
drawContext
A Macintosh draw context object.
grafPort
On exit, the QuickDraw graphics port currently associated with the specified draw context.
DESCRIPTION
The Q3MacDrawContext_GetGrafPort function returns, in the grafPort parameter, the QuickDraw graphics port currently associated with the draw context specified by the drawContext parameter. If no graphics port is associated with the draw context or the two-dimensional graphics library is not kQ3Mac2DLibraryQuickDraw, Q3MacDrawContext_GetGrafPort returns NULL in the grafPort parameter.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996